package com.maiji.cloud.utils;

public enum  ComLabelEnum {

    ComLabelEnum_HP(1,"首页",0,""),
    ComLabelEnum_Ce(2,"案例",1,"#b087e6"),
    ComLabelEnum_Cs(3,"精选",1,"#fddf2e");


    private Integer value;
    private String message;
    private Integer isShow;
    private String bgColor;

    ComLabelEnum (int value , String message,Integer isShow,String bgColor) {
        this.message = message;
        this.value = value;
        this.isShow = isShow;
        this.bgColor = bgColor;
    }

    public static ComLabelEnum getLabel(int value){
        switch (value){
            case 1:
                return ComLabelEnum_HP;
            case 2:
                return ComLabelEnum_Ce;
            case 3:
                return ComLabelEnum_Cs;
                default:
                    return ComLabelEnum_HP;
        }
    }

    public String getMessage() {
        return message;
    }

    public ComLabelEnum setMessage(String message) {
        this.message = message;
        return this;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public String getBgColor() {
        return bgColor;
    }

    public void setBgColor(String bgColor) {
        this.bgColor = bgColor;
    }

    @Override
    public String toString() {
        return this.message;
    }

}
